lib/pull: Add `timestamp-check-from-rev`
authorJonathan Lebon <jonathan@jlebon.com>
Thu, 14 May 2020 17:44:32 +0000 (13:44 -0400)
committerJonathan Lebon <jonathan@jlebon.com>
Thu, 14 May 2020 18:00:42 +0000 (14:00 -0400)
commitc8efce06564b7adef83994dddb41cd61a030207d
tree3f983a6266973e704488e7037b2c77f9d96c304f
parentf145d183694834d74470b3c01a715aa2d1bc9a5f
lib/pull: Add `timestamp-check-from-rev`

The way `timestamp-check` works might be too restrictive in some
situations. Essentially, we need to support the case where users want to
pull an older commit than the current tip, but while still guaranteeing
that it is newer than some even older commit.

This will be used in Fedora CoreOS. For more information see:
https://github.com/coreos/rpm-ostree/pull/2094
https://github.com/coreos/fedora-coreos-tracker/issues/481
src/libostree/ostree-repo-pull-private.h
src/libostree/ostree-repo-pull.c
src/ostree/ot-builtin-pull.c
tests/pull-test.sh